var express = require('express');
var router = express.Router();
var getScoreController = require("../controllers/getScore_controller")
/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', {
    title: 'Express'
  });
});
// 获取学生综测分
router.post("/getScoreItem", (req, res) => {
  var {
    SecondaryCollege,
    student_Number,
    grade,
    className,
    semester,
  } = req.body
  console.log(SecondaryCollege,
    student_Number,
    grade,
    className,
    semester, );
  getScoreController.getScorelist({
    SecondaryCollege,
    student_Number,
    grade,
    className,
    semester
  }, ["获取综测失败", "获取综测成功"], (result) => {
    res.json(result)
  })
})
module.exports = router;